package com.wust.service;

import com.wust.common.ServerResponse;
import com.wust.db.DataSource;
import com.wust.entity.User;

/**
 * Created by lenovo on 2018/5/16.
 */
public interface IUserService {

//    @DataSource(value = "ds2")
    ServerResponse<User> login(String username, String password);

//    @DataSource(value = "ds2")
    ServerResponse<String> register(User user);

//    @DataSource(value = "ds2")
    ServerResponse<User> getUserInfo(String username);

    ServerResponse<Integer> checkPhoneNumber(String telephone);

    ServerResponse<String> bindDevice(int userId,String matchNumber,String matchCode);


}
